package com.punai.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.common.core.domain.TreeBo;
import com.punai.common.core.page.TableDataInfo;
import com.punai.customer.domain.CusGxFee;
import com.punai.customer.domain.CusLinkSubpkConsume;
import com.punai.customer.domain.bo.CJFlRes;
import com.punai.customer.domain.bo.FeeLinkFeatureAndCategoryResultBo;
import com.punai.customer.domain.vo.CusUpdateConsumeVo;

import java.util.List;

/**
 * 标准费用项材机耗量Service接口
 *
 * @author zhx
 * @date 2023-02-02
 */
public interface ICusLinkSubpkConsumeService extends IService<CusLinkSubpkConsume>
{
    public List<CJFlRes> listGxConsume(String gxId, Long companyId, String address);

    public List<CJFlRes> listConsume(String linkGxFeatureId,String address,Long companyId);

    List<TreeBo> listTree(Long companyId,String specId);

    public TableDataInfo selectCusGxFeeList(CusGxFee cusGxFee);

    /**
     * 查询工序费用项
     *
     * @param id 工序费用项主键
     * @return 工序费用项
     */
    public FeeLinkFeatureAndCategoryResultBo selectCusGxFeeById(String id, Long companyId, String address);

    public int updateCusGxFee(Long companyId,List<CusLinkSubpkConsume> cusLinkSubpkConsumeList);

    public int updateConsume(CusUpdateConsumeVo vo);

    public int delConsume(String id,Long companyId);

    public List<CJFlRes> recoverConsume(String linkGxFeatureId,String gxId,Long companyId);
}
